﻿using System.Web;
using System.Web.Optimization;

namespace Tms.Web
{
    public class BundleConfig
    {
        // 有关绑定的详细信息，请访问 http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new StyleBundle("~/Content/Style")
                //.Include("~/css/bootstrap.min.css")
                .Include("~/css/icons.css")
                .Include("~/css/plugins.css")
                .Include("~/css/main.css")
                .Include("~/css/custom.css"));

            bundles.Add(new ScriptBundle("~/bundles/Common").Include(
                        "~/js/bootstrap/bootstrap.js",
                        "~/plugins/forms/validation/jquery.validate.js",
                        "~/plugins/forms/validation/additional-methods.min.js"
                        ));

            bundles.Add(new ScriptBundle("~/bundles/Main").Include(
                        "~/js/libs/modernizr.custom.js",
                        "~/js/jRespond.min.js",
                        "~/plugins/core/slimscroll/jquery.slimscroll.min.js",
                        "~/plugins/core/slimscroll/jquery.slimscroll.horizontal.min.js",
                        "~/plugins/core/fastclick/fastclick.js",
                        "~/plugins/core/velocity/jquery.velocity.min.js",
                        "~/plugins/core/quicksearch/jquery.quicksearch.js",
                        "~/plugins/ui/bootbox/bootbox.js",
                        "~/plugins/charts/sparklines/jquery.sparkline.js",
                        "~/js/libs/date.js",
                        "~/plugins/ui/bootbox/bootbox.js",
                        "~/plugins/forms/fancyselect/fancySelect.js",
                        "~/js/libs/moment.js",
                        "~/plugins/ui/calendar/fullcalendar.js",
                        "~/js/jquery.dynamic.js",
                        "~/js/main.js",
                        "~/js/pages/calendar.js"
                        ));

            bundles.Add(new ScriptBundle("~/bundles/Dashboard").Include(
                        "~/js/pages/dashboard.js"));

            // 使用要用于开发和学习的 Modernizr 的开发版本。然后，当你做好
            // 生产准备时，请使用 http://modernizr.com 上的生成工具来仅选择所需的测试。
            bundles.Add(new ScriptBundle("~/bundles/Login").Include(
                        "~/js/pages/login.js"));

            bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
                      "~/Scripts/bootstrap.js",
                      "~/Scripts/respond.js"));

        }
    }
}
